import { get } from "../get";
import { request } from "../request";

export const getUnvalidate = (pageNum, pageSize, searchModel) => {
  return get.get(`/CmWkBasic/getCmWkBasicSomeNews/${pageNum}/${pageSize}`, {
    params: searchModel
  });
};
export const getmyinput = (user, pageNum, pageSize, searchModel) => {
  return get.get(
    `/CmWkBasic/getCmWkBasicByuploadPerson/${user}/${pageNum}/${pageSize}`,
    {
      params: searchModel
    }
  );
};
export const getmyvalidate = (user, pageNum, pageSize, searchModel) => {
  return get.get(
    `/CmWkBasic/getCmWkBasicByCheckPerson/${user}/${pageNum}/${pageSize}`,
    {
      params: searchModel
    }
  );
};

export const updateValidateStatus = (wellName, caseSize, checkPerson) => {
  return request.put(
    `/CmWkBasic/passValidate?wellName=${wellName}&caseSize=${caseSize}&checkPerson=${checkPerson}`
  );
};

export const getError = searchModel => {
  return get.get(`/datavalidate/error`, {
    params: searchModel
  });
};
